home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / SoundAndMusic / cmix / lib / delset.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-25  |  296 b   |  14 lines

  1. extern float SR;
  2. delset(a,l,xmax)
  3. float *a,xmax;
  4. int *l;
  5. {
  6. /* delay initialization.  a is address of float array, l is size-2 int 
  7.  * array for bookkeeping variables, xmax, is maximum expected delay */
  8.  
  9.     int i;
  10.     *l = 0;
  11.     *(l+1) = (int)(xmax * SR + .5);
  12.     for(i = 0; i < *(l+1); i++) *(a+i) = 0;
  13. }
  14.